<template>
  <div class="list">
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{path:'/'}">首页</el-breadcrumb-item>
      <el-breadcrumb-item >会员服务</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="main">
      <ul class="main-ul">
        <li v-for="(item,index) in goodsList" :key="index">
          <div class="li-top">
            <p>{{ item.name }}</p>
            <span>￥{{ item.price }}元/年</span>
          </div>
          <div class="li-center">
            <span v-for="(it,i) in item.desc" :key="i">{{ it }}</span>
          </div>
          <el-button @click="goDetail(index)" class="li-bottom">立即购买</el-button>
        </li>
      </ul>
      <el-button class="main-btn" @click="goContrast">查看产品权益对比<i class="el-icon-arrow-right"></i></el-button>
    </div>
    <div class="footer">
      CopyRight @双碳采购网 2020-2023
    </div>
  </div>
</template>

<script>

export default {
  name: "list",
  data() {
    return {
      goodsList:[
      {
          name:'VIP1',
          price:4999,
          desc:[
            '1. 短信推送 60 条/月',
            '2. 电脑远程桌面服务 12 次/年',
            '3. 专属人工服务'
          ]
        },
        {
          name:'VIP2',
          price:5999,
          desc:[
            '1. 短信推送 90 条/月',
            '2. 电脑远程桌面服务 18 次/年',
            '3. 专属人工服务'
          ]
        },
        {
          name:'VIP3',
          price:6999,
          desc:[
            '1. 短信推送 90 条/月',
            '2. 电脑远程桌面服务 24 次/年',
            '3. 专属人工服务'
          ]
        },
      ]
    }
  },
  mounted() {
   
  },
  methods: {
    goDetail(id){
      this.$router.push('/member/detail?id='+id)
    },// 购买页
    goContrast(){
      this.$router.push('/member/contrast')
    }, // 产品对比页
  }
}
</script>

<style lang="scss" scoped>
.list{
  .main{
    .main-ul{
      display: flex;
      justify-content: space-around;

      li{
        width: 18%;
        height: 350px;
        list-style: none;
        box-shadow: 0 6px 20px 1px #999;
        border-radius: 15px;
        overflow: hidden;

        .li-top{
          height: 40%;
          background-color: #1dd0b7;
          color: #fff;
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          p{
            margin: 0;
            font-size: 32px;
          }
          span{
            font-size: 24px;
          }
        }
        .li-center{
          height: 40%;
          display: flex;
          flex-direction: column;
          text-align: left;
          margin-left: 30px;
          span{
            margin-top: 20px;
          }
        }
        .li-bottom{
          background-color: #1dd0b7;
          color: #fff;
          width: 80%;
          margin: auto;
        }
      }
    }

    .main-btn{
      width: 90%;
      margin: auto;
      margin-top: 30px;
      background-color: #1dd0b722;
      border-color: #1dd0b7;
      color: #1dd0b7;
    }
  }
  .footer{
    margin-top: 30px;
    font-size: 14px;
  }
}
</style>
